package com.cskaoyan._01basic._09operator;

/**
 * @author Macro_Ray
 * @since 2024/3/2 17:19
 */
public class Demo4 {
    public static void main(String[] args) {
        // +=
        // 规则：将左边和右边进行相加，再把结果赋值给左边
        int a = 10;
        int b = 20;
        a += b;
        //等同于 a = a + b;
        System.out.println(a);
        System.out.println(b);
    }
}
